<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div class="table-responsive">
<button class="btn btn-info" type="button" onclick="func()">点击机器人开启</button>
  <table class="table">
    <tr>
    	<td>type</td>
    	<td>qunnumber</td>
    	<td>qqnumber</td>
    	<td>msg</td>
    	<td>time</td>
    </tr>
    <c:forEach items="${qq}" var="c">
    	<tr>
    		<td>${c.type }</td>
    		<td>${c.qunnumber }</td>
    		<td>${c.qqnumber }</td>
    		<td>${c.msg }</td>
    		<td>${c.time }</td>
    	</tr>
    </c:forEach>
  </table>
</div>
<script type="text/javascript">
	function func(){
		$.post('qq/torebot',function(data){
			alert("启动成功");
		});
	}
</script>
</body>
</html>